<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 宝贝嘉燕
  Date: 2021/9/26
  Time: 11:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
int a=11;
pageContext.setAttribute("a",a);

%>
<c:choose>

  <c:when test="${a==10}">
    <h1>张三丰</h1>
  </c:when>



  <c:when test="${a==12}">
    <h1>李四光</h1>
  </c:when>

  <c:when test="${a==12}">
    <h1>李四光</h1>
  </c:when>

  <c:when test="${a==13}">
    <h1>王老五</h1>
  </c:when>

  <c:otherwise>
    <h1>中午吃两馒头</h1>
  </c:otherwise>

</c:choose>
</body>
</html>
